/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-03-21
 * Time: 15:32
 * To BE A Better Person-2020-3-2
 */
public class TestDemo {
    /**
     *
     * @param arr
     * @param len
     * shuidaima
     */
    public static void Print(int[] arr,int len){
        if(len==0){
            System.out.println(arr[0]);
            return;
        }
        Print(arr, (len-1));
        System.out.println(arr[len-1]);
    }
    public static void main(String[] args) {
        int[] a={1,2,3,4,5};
        int len=5;
        Print(a,len);
    }
}
